<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">{{msg}}</div>
</body>
<script src="MVVM/mvvm.js"></script>
<script src="MVVM/compile.js"></script>
<script src="MVVM/observer.js"></script>
<script src="MVVM/watcher.js"></script>
<script>
    // 数据转绑(数据代理): data中属性的读写权限会代理给vm实例对象
    var vm = new MVVM({
        el:"#app",
        data:{
            msg:"xxx",
            a:"a",
            b:"b",
            c:"c"
        }
    })

    // console.log(vm.msg);
    vm.msg = "yyy"
</script>
</html>